<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>车辆列表</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css" rel="stylesheet">
    <style>
        body {
            background-color: #f8f9fa;
            margin: 0;
            padding: 0;
        }
        .capsule {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 87px;
            height: 30px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 15px;
        }
        #map {
            width: 100%;
            height: 200px;
            border-radius: 12px;
        }
    </style>
</head>
<body>
    <div class="capsule"></div>
    <div class="p-4">
        <!-- 筛选栏 -->
        <div class="flex justify-between mb-4">
            <button class="px-4 py-2 rounded-lg bg-white shadow-sm text-sm flex items-center">
                <i class="ri-filter-3-line mr-1"></i>
                筛选
            </button>
            <button class="px-4 py-2 rounded-lg bg-white shadow-sm text-sm flex items-center">
                <i class="ri-sort-desc mr-1"></i>
                排序
            </button>
            <button class="px-4 py-2 rounded-lg bg-white shadow-sm text-sm flex items-center">
                <i class="ri-map-pin-line mr-1"></i>
                位置
            </button>
            <button class="px-4 py-2 rounded-lg bg-white shadow-sm text-sm flex items-center">
                <i class="ri-time-line mr-1"></i>
                时间
            </button>
        </div>

        <!-- 地图区域 -->
        <div class="mb-4">
            <div class="bg-white rounded-xl p-4 shadow-sm">
                <div class="flex justify-between items-center mb-3">
                    <h3 class="font-medium">附近站点</h3>
                    <button class="text-sm text-blue-500 flex items-center">
                        <i class="ri-refresh-line mr-1"></i>
                        刷新位置
                    </button>
                </div>
                <div id="map"></div>
                <div class="mt-3 flex items-center text-sm text-gray-500">
                    <i class="ri-map-pin-line mr-1"></i>
                    <span>当前位置：北京市朝阳区</span>
                </div>
            </div>
        </div>

        <!-- 车辆列表 -->
        <div class="space-y-4">
            <!-- 车辆卡片1 -->
            <div class="bg-white rounded-xl p-4 shadow-sm">
                <div class="flex">
                    <img src="https://images.unsplash.com/photo-1541899481282-d53bffe3c35d" 
                         class="w-24 h-16 object-cover rounded-lg">
                    <div class="ml-4 flex-1">
                        <h3 class="font-medium">特斯拉 Model 3</h3>
                        <p class="text-sm text-gray-500">续航 468km | 百公里加速 3.3s</p>
                        <div class="flex items-center mt-1">
                            <div class="flex text-yellow-400">
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-half-fill"></i>
                            </div>
                            <span class="text-sm text-gray-500 ml-1">4.5 (128条评价)</span>
                        </div>
                        <div class="flex justify-between items-end mt-2">
                            <div class="text-sm text-gray-500">
                                已租用 328 次
                            </div>
                            <div class="text-right">
                                <p class="text-lg font-semibold text-blue-600">¥316/天</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 车辆卡片2 -->
            <div class="bg-white rounded-xl p-4 shadow-sm">
                <div class="flex">
                    <img src="https://images.unsplash.com/photo-1551830820-330a71b99659" 
                         class="w-24 h-16 object-cover rounded-lg">
                    <div class="ml-4 flex-1">
                        <h3 class="font-medium">宝马 3系</h3>
                        <p class="text-sm text-gray-500">2.0T | 自动挡 | 5座</p>
                        <div class="flex items-center mt-1">
                            <div class="flex text-yellow-400">
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-line"></i>
                            </div>
                            <span class="text-sm text-gray-500 ml-1">4.0 (256条评价)</span>
                        </div>
                        <div class="flex justify-between items-end mt-2">
                            <div class="text-sm text-gray-500">
                                已租用 512 次
                            </div>
                            <div class="text-right">
                                <p class="text-lg font-semibold text-blue-600">¥399/天</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 车辆卡片3 -->
            <div class="bg-white rounded-xl p-4 shadow-sm">
                <div class="flex">
                    <img src="https://images.unsplash.com/photo-1549317661-bd32c8ce0db2" 
                         class="w-24 h-16 object-cover rounded-lg">
                    <div class="ml-4 flex-1">
                        <h3 class="font-medium">奔驰 E级</h3>
                        <p class="text-sm text-gray-500">2.0T | 自动挡 | 5座</p>
                        <div class="flex items-center mt-1">
                            <div class="flex text-yellow-400">
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                                <i class="ri-star-fill"></i>
                            </div>
                            <span class="text-sm text-gray-500 ml-1">5.0 (128条评价)</span>
                        </div>
                        <div class="flex justify-between items-end mt-2">
                            <div class="text-sm text-gray-500">
                                已租用 256 次
                            </div>
                            <div class="text-right">
                                <p class="text-lg font-semibold text-blue-600">¥466/天</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 引入高德地图API -->
    <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=您的高德地图key"></script>
    <script>
        // 初始化地图
        var map = new AMap.Map('map', {
            zoom: 13,
            center: [116.397428, 39.90923] // 默认北京中心点
        });

        // 获取当前位置
        function getCurrentPosition() {
            if (navigator.geolocation) {
                navigator.geolocation.getCurrentPosition(function(position) {
                    var lng = position.coords.longitude;
                    var lat = position.coords.latitude;
                    map.setCenter([lng, lat]);
                    
                    // 添加当前位置标记
                    var marker = new AMap.Marker({
                        position: [lng, lat],
                        map: map
                    });
                });
            }
        }

        // 页面加载时获取位置
        getCurrentPosition();
    </script>
</body>
</html> 